home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000158_Jdanskinner@jdanskinner.com_Tue Mar 30 09:57:14 2004.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Path: newsmaster.cc.columbia.edu!iad-feed.news.verio.net!peer1.stngva01.us.to.verio.net!news.verio.net!newsfeed.icl.net!newsfeed.fjserv.net!nnx.oleane.net!oleane!freenix!sn-xit-02!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
  2. From: "Dan Skinner" <Jdanskinner@jdanskinner.com>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Trying to connect to a device console via COM 1 (no dialing modem)
  5. Date: Tue, 30 Mar 2004 08:20:49 -0600
  6. Organization: Posted via Supernews, http://www.supernews.com
  7. Message-ID: <106j1mn3k72m817@corp.supernews.com>
  8. References: <9c258be2.0403292240.2e00c890@posting.google.com> <9c258be2.0403300608.46d5097f@posting.google.com>
  9. X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
  10. X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
  11. X-Complaints-To: abuse@supernews.com
  12. Lines: 62
  13. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14870
  14.  
  15. To answer your question:
  16. One needs to give Kermit permission to read the buffer.
  17. The never ending input grants that permission, (set input echo on
  18. grants permission to display the input on the screen.)
  19. There are other (none better I can think of) ways to grant permission,
  20. but something must be done to invite the input (like Alt-X.)
  21.  
  22. Regards...Dan.
  23.  
  24. "Klein Bill" <collector59ca@yahoo.com> wrote in message
  25. news:9c258be2.0403300608.46d5097f@posting.google.com...
  26. > Corrections:
  27. > I've updated the script to (see capitals):
  28. >
  29. > *****************************
  30. > SET MODEM TYPE NONE
  31. > set input echo on
  32. > def tsprompt >
  33. > set carrier-watch off
  34. > set line  1
  35. > set serial 8n1
  36. > set speed 115200
  37. >
  38. > OUTPUT \13
  39. >
  40. > if def tsprompt {
  41. >     for \%i 1 2 1 {
  42. >  input 1 \m(tsprompt)
  43. >  if success break
  44. >  output \13
  45. >     } lineout show config          ;command to send
  46. > }
  47. > *****************************************
  48. >
  49. > And still Kermit exhibits the same behavior.
  50. >
  51. > I've made a FINAL UPDATE (the next one -> see below)
  52. >
  53. > ****************************************
  54. > set input echo on
  55. > set modem type none
  56. > set carrier-watch off
  57. > set line  1
  58. > set serial 8n1
  59. > set speed 115200
  60. > output \13
  61. > input 2 console>
  62. > lineout show config
  63. > INPUT -1 STRING_THAT_NEVER_COMES
  64. > *****************************************
  65. >
  66. > And this time Kermit showed me the full interaction in command mode.
  67. > Why isn't it possible to obtain the interaction dialog in command mode
  68. > without having an endless waiting condition at the end of the script ?
  69. > Why set input echo on is not enough? If it is possible to get the
  70. > interaction in command mode without the "STRING_THAT_NEVER_COMES" part
  71. > I'd like to know the way.
  72. >
  73. > Please anybody help.
  74. > Thanks in advance
  75.  
  76.